package server.content.quests.misc;

public enum QuestConfig {

	COOKS_ASSISTANT(1, 28165);

	private final int questId;
	private final int questButtonId;

	private QuestConfig(final int questId, final int questButtonId) {
		this.questId = questId;
		this.questButtonId = questButtonId;
	}

	public static QuestConfig getQuestForButton(final int buttonId) {
		for (final QuestConfig config : QuestConfig.values()) {
			if (config.getQuestButtonId() == buttonId) {
				return config;
			}
		}
		return null;
	}

	public int getQuestId() {
		return questId;
	}

	public int getQuestButtonId() {
		return questButtonId;
	}

}
